package com.faneui.transfer.gateway.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;

@RestController
@Api("仓库")
@RequestMapping(value = "users/warehouse/")
public class WarehouseController extends AbstractController {

	private static final Logger log = LoggerFactory.getLogger(WarehouseController.class);
 
	 
//	@ApiOperation(value = "全局仓库下拉菜单")
//	@RequestMapping(value = "options", method = RequestMethod.GET)
//	@ResponseBody
//	public QueryWHOptionsVoLIstResp options() throws Exception { 
//		QueryWHOptionsVoLIstResp resp = new QueryWHOptionsVoLIstResp();
//		List<WarehouseDTO> dtos = warehouseIntegration.queryWarehouse(new WarehouseDTO(), this.getCurUser().getId()) ;
//		if(ListUtils.isNotEmpty(dtos)){
//			List<WHOptionsVo> vos = Lists.newArrayList() ;
//			for(WarehouseDTO dto:dtos){
//				WHOptionsVo vo = new WHOptionsVo();
//				vo.setWarehouseId(dto.getId());
//				vo.setWarehouseName(dto.getName());
//				vos.add(vo) ;
//			}
//			resp.setwHOptionsVos(vos);
//		}
//		resp.setMsg("全局仓库下拉菜单查询成功");
//		return resp;
//	}
// 
//	 
}
